.class public Lcom/xingbook/park/ui/at;
.super Landroid/widget/RelativeLayout;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Lcom/xingbook/park/ui/av;

.field private e:F

.field private f:Lcom/xingbook/park/b/g;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/av;)V
    .locals 8

    const/high16 v7, 0x4210

    const/16 v6, 0xf

    const/4 v5, 0x1

    const/4 v4, -0x2

    const/4 v3, 0x0

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput p2, p0, Lcom/xingbook/park/ui/at;->e:F

    iput-object p3, p0, Lcom/xingbook/park/ui/at;->d:Lcom/xingbook/park/ui/av;

    const v0, -0x80809

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/at;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/at;->a:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->a:Landroid/widget/ImageView;

    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v1, 0x4258

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x4230

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v1, 0x9

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v1, 0x41e8

    mul-float/2addr v1, p2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v1, p0, Lcom/xingbook/park/ui/at;->a:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->a:Landroid/widget/ImageView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/at;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/at;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->b:Landroid/widget/TextView;

    const v1, -0xcccccd

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->b:Landroid/widget/TextView;

    mul-float v1, v7, p2

    invoke-virtual {v0, v3, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v1, 0x9

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v1, 0x42b4

    mul-float/2addr v1, p2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v1, p0, Lcom/xingbook/park/ui/at;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->b:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/at;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/at;->c:Landroid/widget/TextView;

    const/4 v0, 0x2

    new-array v0, v0, [[I

    new-array v1, v5, [I

    const v2, 0x10100a7

    aput v2, v1, v3

    aput-object v1, v0, v3

    new-array v1, v3, [I

    aput-object v1, v0, v5

    const/4 v1, 0x2

    new-array v1, v1, [I

    fill-array-data v1, :array_0

    new-instance v2, Landroid/content/res/ColorStateList;

    invoke-direct {v2, v0, v1}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->c:Landroid/widget/TextView;

    mul-float v1, v7, p2

    invoke-virtual {v0, v3, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v1, 0xb

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v1, 0x4190

    mul-float/2addr v1, p2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iget-object v1, p0, Lcom/xingbook/park/ui/at;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->c:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/at;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->c:Landroid/widget/TextView;

    new-instance v1, Lcom/xingbook/park/ui/au;

    invoke-direct {v1, p0}, Lcom/xingbook/park/ui/au;-><init>(Lcom/xingbook/park/ui/at;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v1, -0x1b1b1c

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xa

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/at;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v1, -0x1b1b1c

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xc

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/at;->addView(Landroid/view/View;)V

    return-void

    :array_0
    .array-data 0x4
        0xcct 0xcct 0xcct 0xfft
        0x99t 0x99t 0x99t 0xfft
    .end array-data
.end method

.method static synthetic a(Lcom/xingbook/park/ui/at;)Lcom/xingbook/park/ui/av;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->d:Lcom/xingbook/park/ui/av;

    return-object v0
.end method

.method static synthetic b(Lcom/xingbook/park/ui/at;)Lcom/xingbook/park/b/g;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->f:Lcom/xingbook/park/b/g;

    return-object v0
.end method


# virtual methods
.method public getRealHeight()I
    .locals 2

    const/high16 v0, 0x42b0

    iget v1, p0, Lcom/xingbook/park/ui/at;->e:F

    mul-float/2addr v0, v1

    float-to-int v0, v0

    return v0
.end method

.method public setData(Lcom/xingbook/park/b/g;)V
    .locals 4

    const/4 v1, 0x0

    if-nez p1, :cond_0

    move v2, v1

    move v0, v1

    :goto_0
    if-eqz v0, :cond_3

    iput-object p1, p0, Lcom/xingbook/park/ui/at;->f:Lcom/xingbook/park/b/g;

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/at;->setVisibility(I)V

    const v1, 0x7f0201b9

    const-string v0, "\u641c\u7d22\u7ed3\u679c"

    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->a()I

    move-result v3

    sparse-switch v3, :sswitch_data_0

    :goto_1
    iget-object v3, p0, Lcom/xingbook/park/ui/at;->a:Landroid/widget/ImageView;

    invoke-virtual {v3, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/at;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/at;->c:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v3, "\u5168\u90e8"

    invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\u6761\u7ed3\u679c>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    return-void

    :cond_0
    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->d()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {p1}, Lcom/xingbook/park/b/g;->d()Ljava/lang/String;

    move-result-object v0

    const-string v2, ","

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    aget-object v0, v0, v1

    invoke-static {v0, v1}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v2

    if-lez v2, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    move v0, v1

    goto :goto_0

    :cond_2
    move v2, v1

    move v0, v1

    goto :goto_0

    :sswitch_0
    const v1, 0x7f0202dc

    const-string v0, "\u661f\u5b9d\u4e66"

    goto :goto_1

    :sswitch_1
    const v1, 0x7f0202da

    const-string v0, "\u7ed8\u672c"

    goto :goto_1

    :sswitch_2
    const v1, 0x7f0202db

    const-string v0, "\u661f\u5b9d\u542c\u542c"

    goto :goto_1

    :sswitch_3
    const v1, 0x7f0202d8

    const-string v0, "\u661f\u5b9d\u513f\u6b4c"

    goto :goto_1

    :sswitch_4
    const v1, 0x7f0202de

    const-string v0, "\u661f\u5b9d\u5f71\u9662"

    goto :goto_1

    :sswitch_5
    const v1, 0x7f0202dd

    const-string v0, "\u8bdd\u9898"

    goto :goto_1

    :sswitch_6
    const v1, 0x7f0202d9

    const-string v0, "\u767e\u79d1"

    goto :goto_1

    :cond_3
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/ui/at;->f:Lcom/xingbook/park/b/g;

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/at;->setVisibility(I)V

    goto :goto_2

    nop

    :sswitch_data_0
    .sparse-switch
        0x30 -> :sswitch_0
        0x40 -> :sswitch_3
        0x50 -> :sswitch_2
        0x60 -> :sswitch_4
        0x70 -> :sswitch_1
        0xc0 -> :sswitch_5
        0xd0 -> :sswitch_6
    .end sparse-switch
.end method
